import request from '@/utils/request'
//  获取流程列表
export function getList(data: any) {
  return request({
    url: '/WF_WorkFlow/GetPageData',
    method: 'post',
    data,
  })
}

//  获取删除列表
export function deleteList(data: any) {
  return request({
    url: '/WF_WorkFlow/delwf',
    method: 'post',
    data,
  })
}

//  添加保存流程
export function addSaveList(data: any) {
  return request({
    url: '/WF_WorkFlow/savewf',
    method: 'post',
    data,
  })
}

//  获取流程模板详情
export function WorkFlowGetwfinfo(data: any) {
  return request({
    url: '/WF_WorkFlow/getwfinfo',
    method: 'post',
    data,
  })
}

//  获取人员列表
export function GetPageData(data: any) {
  return request({
    url: '/Base_User/GetPageData',
    method: 'post',
    data,
  })
}

//  获取入库订单管理数据
export function BillMasterList(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/GetPageData',
    method: 'post',
    data,
  })
}

//  获取删除入库订单管理数据
export function delibm(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/DelData',
    method: 'post',
    data,
  })
}

//  获取入库订单管理数据详情
export function GetDetailPageData(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

//  获取编辑入库订单管理数据详情
export function UpdateData(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/UpdateData',
    method: 'post',
    data,
  })
}

//  获取添加入库订单管理数据详情
export function AddData(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/AddData',
    method: 'post',
    data,
  })
}

//  获取物资数据列表
export function WmsGetPageData(data: any) {
  return request({
    url: '/Wms_Item/GetPageData',
    method: 'post',
    data,
  })
}

//  获取合同信息数据列表
export function agreePageData(data: any) {
  return request({
    url: '/W_Contract/GetPageData',
    method: 'post',
    data,
  })
}

//  删除合同信息数据
export function agreeDelc(data: any) {
  return request({
    url: '/W_Contract/delc',
    method: 'post',
    data,
  })
}

//  新增合同信息数据
export function addAgreements(data: any) {
  return request({
    url: '/W_Contract/savec',
    method: 'post',
    data,
  })
}

//  获取合同附件信息
export function WF_DocumentList(data: any) {
  return request({
    url: '/WF_Document/GetList',
    method: 'post',
    data,
  })
}

//  删除合同附件信息
export function WF_Documentdeldoc(data: any) {
  return request({
    url: '/WF_Document/deldoc',
    method: 'post',
    data,
  })
}

//  获取采购订单数据列表
export function Wms_PurchaseList(data: any) {
  return request({
    url: '/Wms_PurchaseOrderMaster/GetPageData',
    method: 'post',
    data,
  })
}

//  删除采购订单数据
export function Wms_PurchaseDel(data: any) {
  return request({
    url: '/Wms_PurchaseOrderMaster/DelData',
    method: 'post',
    data,
  })
}

//  获取供应商数据
export function Wms_SupplierData(data: any) {
  return request({
    url: '/Wms_Supplier/GetPageData',
    method: 'post',
    data,
  })
}

//  获取采购单明细详情
export function Wms_PurchaseDaetail(data: any) {
  return request({
    url: '/Wms_PurchaseOrderMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

//  采购订单编辑
export function UpdatePurchaseOrder(data: any) {
  return request({
    url: '/Wms_PurchaseOrderMaster/UpdateData',
    method: 'post',
    data,
  })
}

//  采购订单编辑
export function AddPurchaseOrder(data: any) {
  return request({
    url: '/Wms_PurchaseOrderMaster/AddData',
    method: 'post',
    data,
  })
}

//  到货预报列表数据
export function ArrivalData(data: any) {
  return request({
    url: '/Wms_ArrivalForecastMaster/GetPageData',
    method: 'post',
    data,
  })
}

//  删除到货预报列表数据
export function ArrivalDel(data: any) {
  return request({
    url: '/Wms_ArrivalForecastMaster/DelData',
    method: 'post',
    data,
  })
}

//  到货预报详情
export function ArrivalDetail(data: any) {
  return request({
    url: '/Wms_ArrivalForecastMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

//  新增到货预报订单
export function AddArrival(data: any) {
  return request({
    url: '/Wms_ArrivalForecastMaster/AddData',
    method: 'post',
    data,
  })
}

//  编辑到货预报订单
export function UpdataArrival(data: any) {
  return request({
    url: '/Wms_ArrivalForecastMaster/UpdateData',
    method: 'post',
    data,
  })
}

//  到货准备列表数据
export function ArrivalPreparationData(data: any) {
  return request({
    url: '/Wms_ArrivalPreparationMaster/GetPageData',
    method: 'post',
    data,
  })
}

//  删除到货准备列表数据
export function ArrivalPreparationDel(data: any) {
  return request({
    url: '/Wms_ArrivalPreparationMaster/DelData',
    method: 'post',
    data,
  })
}

//  到货准备详情
export function ArrivalPreparationDetail(data: any) {
  return request({
    url: '/Wms_ArrivalPreparationMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

//  新增到货准备订单
export function AddArrivalPreparation(data: any) {
  return request({
    url: '/Wms_ArrivalPreparationMaster/AddData',
    method: 'post',
    data,
  })
}

//  编辑到货准备订单
export function UpdataArrivalPreparation(data: any) {
  return request({
    url: '/Wms_ArrivalPreparationMaster/UpdateData',
    method: 'post',
    data,
  })
}

//  到货通知单订单数据
export function ArrivalNoticeData(data: any) {
  return request({
    url: '/Wms_ArrivalNotice/GetPageData',
    method: 'post',
    data,
  })
}

//  查询货通知单订单数据明细
export function searchArrivalNoticeDetail(data: any) {
  return request({
    url: '/Wms_ArrivalNotice/GetPOMPageData',
    method: 'post',
    data,
  })
}

//  添加到货通知订单
export function saveanArrivalNotice(data: any) {
  return request({
    url: '/Wms_ArrivalNotice/savean',
    method: 'post',
    data,
  })
}

//  删除货通知订单
export function deleArrivalNotice(data: any) {
  return request({
    url: '/Wms_ArrivalNotice/delan',
    method: 'post',
    data,
  })
}

// 获取货通知订单详情
export function ArrivalNoticeDetail(data: any) {
  return request({
    url: '/Wms_ArrivalNotice/getan',
    method: 'post',
    data,
  })
}

// 调度派工管理列表
export function DispatchOrderData(data: any) {
  return request({
    url: '/Wms_DispatchOrderMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 新增度派工管理列表
export function AddDispatchOrder(data: any) {
  return request({
    url: '/Wms_DispatchOrderMaster/AddData',
    method: 'post',
    data,
  })
}

// 编辑度派工管理列表
export function UpdateDispatchOrder(data: any) {
  return request({
    url: '/Wms_DispatchOrderMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 删除度派工管理列表
export function DelDispatchOrder(data: any) {
  return request({
    url: '/Wms_DispatchOrderMaster/DelData',
    method: 'post',
    data,
  })
}

// 调度派工详情
export function DispatchOrderDetail(data: any) {
  return request({
    url: '/Wms_DispatchOrderMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 到货确认订单列表
export function ArrivalConfirmData(data: any) {
  return request({
    url: '/Wms_ArrivalConfirmMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 删除到货确认订单列表
export function DelArrivalConfirm(data: any) {
  return request({
    url: '/Wms_ArrivalConfirmMaster/DelData',
    method: 'post',
    data,
  })
}

// 新增到货确认订单列表
export function AddArrivalConfirm(data: any) {
  return request({
    url: '/Wms_ArrivalConfirmMaster/AddData',
    method: 'post',
    data,
  })
}

// 编辑到货确认订单列表
export function UpdateArrivalConfirm(data: any) {
  return request({
    url: '/Wms_ArrivalConfirmMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 到货确认订单详情
export function ArrivalConfirmDetail(data: any) {
  return request({
    url: '/Wms_ArrivalConfirmMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 物资验收单列表
export function ItemAcceptanceData(data: any) {
  return request({
    url: '/Wms_ItemAcceptanceMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 删除物资验收单
export function DelItemAcceptance(data: any) {
  return request({
    url: '/Wms_ItemAcceptanceMaster/DelData',
    method: 'post',
    data,
  })
}

// 物资验收单详情
export function ItemAcceptanceDetail(data: any) {
  return request({
    url: '/Wms_ItemAcceptanceMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 新增物资验收单
export function AddItemAcceptance(data: any) {
  return request({
    url: '/Wms_ItemAcceptanceMaster/AddData',
    method: 'post',
    data,
  })
}

// 编辑物资验收单
export function UpdateItemAcceptance(data: any) {
  return request({
    url: '/Wms_ItemAcceptanceMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 领料凭证单列表
export function pickOrderData(data: any) {
  return request({
    url: '/Wms_PickOrderMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 删除领料凭证单列表数据
export function DelpickOrderData(data: any) {
  return request({
    url: '/Wms_PickOrderMaster/DelData',
    method: 'post',
    data,
  })
}

// 领料凭证单详情
export function PickOrderDetail(data: any) {
  return request({
    url: '/Wms_PickOrderMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 新增领料凭证单
export function AddPickOrder(data: any) {
  return request({
    url: '/Wms_PickOrderMaster/AddData',
    method: 'post',
    data,
  })
}

// 编辑领料凭证单
export function UpdatePickOrder(data: any) {
  return request({
    url: '/Wms_PickOrderMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 物资出库单列表数据
export function OutboundBillData(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 物资出库单详情
export function OutboundBillDetail(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除物资出库单
export function DelOutboundBill(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/DelData',
    method: 'post',
    data,
  })
}

// 添加物资出库单
export function AddOutboundBill(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/AddData',
    method: 'post',
    data,
  })
}

// 编辑物资出库单
export function UpdateOutboundBill(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 系统日志列表
export function Sys_LogData(data: any) {
  return request({
    url: '/Sys_Log/GetPageData',
    method: 'post',
    data,
  })
}

// 系统日志详情
export function Sys_LogDetail(data: any) {
  return request({
    url: '/Sys_Log/getsyslog',
    method: 'post',
    data,
  })
}

// 出库通知列表数据
export function OutboundNoticeData(data: any) {
  return request({
    url: '/Wms_OutboundNoticeMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 出库通知详情
export function OutboundNoticeDetail(data: any) {
  return request({
    url: '/Wms_OutboundNoticeMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除出库通知
export function OutboundNoticeDel(data: any) {
  return request({
    url: '/Wms_OutboundNoticeMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑出库通知详情
export function UpdateOutboundNotice(data: any) {
  return request({
    url: '/Wms_OutboundNoticeMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 添加出库通知详情
export function AddOutboundNotice(data: any) {
  return request({
    url: '/Wms_OutboundNoticeMaster/AddData',
    method: 'post',
    data,
  })
}

// 配送计划列表
export function DeliveryPlanData(data: any) {
  return request({
    url: '/Wms_DeliveryPlan/GetPageData',
    method: 'post',
    data,
  })
}

// 删除配送计划
export function DeliveryPlanDel(data: any) {
  return request({
    url: '/Wms_DeliveryPlan/deldp',
    method: 'post',
    data,
  })
}

// 配送计划详情
export function DeliveryPlanDetail(data: any) {
  return request({
    url: '/Wms_DeliveryPlan/getdp',
    method: 'post',
    data,
  })
}

// 添加配送计划
export function AddDeliveryPlan(data: any) {
  return request({
    url: '/Wms_DeliveryPlan/savedp',
    method: 'post',
    data,
  })
}

// 配送清单
export function DeliveryList(data: any) {
  return request({
    url: '/Wms_DeliveryListMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 配送清单详情
export function DeliveryDetail(data: any) {
  return request({
    url: '/Wms_DeliveryListMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除配送清单
export function DeliveryDel(data: any) {
  return request({
    url: '/Wms_DeliveryListMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑配送清单
export function UpdateDelivery(data: any) {
  return request({
    url: '/Wms_DeliveryListMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 添加配送清单
export function AddDelivery(data: any) {
  return request({
    url: '/Wms_DeliveryListMaster/AddData',
    method: 'post',
    data,
  })
}

// 物资调拨管理列表
export function TransferOrderData(data: any) {
  return request({
    url: '/Wms_TransferOrderMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 物资调拨详情
export function TransferOrderDetail(data: any) {
  return request({
    url: '/Wms_TransferOrderMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除物资调拨单
export function TransferOrderDel(data: any) {
  return request({
    url: '/Wms_TransferOrderMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑物资调拨单
export function UpdateTransferOrder(data: any) {
  return request({
    url: '/Wms_TransferOrderMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 新增物资调拨单
export function AddTransferOrder(data: any) {
  return request({
    url: '/Wms_TransferOrderMaster/AddData',
    method: 'post',
    data,
  })
}

// 盘点单列表
export function CheckOrderData(data: any) {
  return request({
    url: '/Wms_CheckOrderMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 盘点单详情
export function CheckOrderDetail(data: any) {
  return request({
    url: '/Wms_CheckOrderMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除盘点单
export function CheckOrderDel(data: any) {
  return request({
    url: '/Wms_CheckOrderMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑盘点单详情
export function UpdateCheckOrder(data: any) {
  return request({
    url: '/Wms_CheckOrderMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 添加盘点单详情
export function AddCheckOrder(data: any) {
  return request({
    url: '/Wms_CheckOrderMaster/AddData',
    method: 'post',
    data,
  })
}

// 异常入库列表
export function DiffIncomeBillData(data: any) {
  return request({
    url: '/Wms_DiffIncomeBillMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 异常入库详情
export function DiffIncomeBillDetail(data: any) {
  return request({
    url: '/Wms_DiffIncomeBillMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除异常入库
export function DiffIncomeBillDel(data: any) {
  return request({
    url: '/Wms_DiffIncomeBillMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑异常入库
export function UpdateDiffIncomeBill(data: any) {
  return request({
    url: '/Wms_DiffIncomeBillMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 新增异常入库
export function AddDiffIncomeBill(data: any) {
  return request({
    url: '/Wms_DiffIncomeBillMaster/AddData',
    method: 'post',
    data,
  })
}

// 异常出库单列表
export function DiffOutboundBillData(data: any) {
  return request({
    url: '/Wms_DiffOutboundBillMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 异常出库单详情
export function DiffOutboundBillDetail(data: any) {
  return request({
    url: '/Wms_DiffOutboundBillMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除异常出库单
export function DiffOutboundBillDel(data: any) {
  return request({
    url: '/Wms_DiffOutboundBillMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑异常出库单
export function UpdateDiffOutboundBill(data: any) {
  return request({
    url: '/Wms_DiffOutboundBillMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 新增异常出库单
export function AddDiffOutboundBill(data: any) {
  return request({
    url: '/Wms_DiffOutboundBillMaster/AddData',
    method: 'post',
    data,
  })
}

// 查询领料凭证明细
export function SearchPickOrder(data: any) {
  return request({
    url: '/Wms_PickOrderMaster/GetPickDetailData',
    method: 'post',
    data,
  })
}

// 查询出库单明细
export function GetOutboundDetailDetail(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/GetOutboundDetailData',
    method: 'post',
    data,
  })
}

// 入库审核
export function IncomeBillExamine(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/InComeData',
    method: 'post',
    data,
  })
}

// 出库审核
export function OutboundExamine(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/OutboundData',
    method: 'post',
    data,
  })
}

// 调拨审核
export function TransExamine(data: any) {
  return request({
    url: '/Wms_TransferOrderMaster/TransData',
    method: 'post',
    data,
  })
}

// 盘点单审核
export function InventoryExamine(data: any) {
  return request({
    url: '/Wms_CheckOrderMaster/InventoryData',
    method: 'post',
    data,
  })
}

// 出入口管理记录数据
export function InOuStockData(data: any) {
  return request({
    url: '/Wms_InOuStock/GetPageData',
    method: 'post',
    data,
  })
}

// 删除出入口记录
export function InOuStockDel(data: any) {
  return request({
    url: '/Wms_InOuStock/delio',
    method: 'post',
    data,
  })
}

// 出入口记录详情
export function InOuStockDetail(data: any) {
  return request({
    url: '/Wms_InOuStock/getstockio',
    method: 'post',
    data,
  })
}

// 新增更新记录详情
export function savesioInOuStock(data: any) {
  return request({
    url: '/Wms_InOuStock/savesio',
    method: 'post',
    data,
  })
}

// 物资库存表
export function ItemStockData(data: any) {
  return request({
    url: '/Wms_ItemStock/GetPageData',
    method: 'post',
    data,
  })
}

// 异常入库单审核
export function DiffIncomeBillExamine(data: any) {
  return request({
    url: '/Wms_DiffIncomeBillMaster/DiffInComeData',
    method: 'post',
    data,
  })
}

// 异常出库单审核
export function DiffOutboundBillExamine(data: any) {
  return request({
    url: '/Wms_DiffOutboundBillMaster/DiffOutboundData',
    method: 'post',
    data,
  })
}

// 获取表头信息
export function gettableColumn(data: any) {
  return request({
    url: '/Base_TableColumn/gettable',
    method: 'post',
    data,
  })
}

// 退货单列表
export function ReturnItemBillData(data: any) {
  return request({
    url: '/Wms_ReturnItemBillMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 删除退货单列表
export function ReturnItemBillDel(data: any) {
  return request({
    url: '/Wms_ReturnItemBillMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑退货单列表
export function UpdateReturnItemBill(data: any) {
  return request({
    url: '/Wms_ReturnItemBillMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 新增退货单列表
export function AddReturnItemBill(data: any) {
  return request({
    url: '/Wms_ReturnItemBillMaster/AddData',
    method: 'post',
    data,
  })
}

// 退货单详情
export function ReturnItemBillDetail(data: any) {
  return request({
    url: '/Wms_ReturnItemBillMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 退库单列表
export function ReturnStockBillData(data: any) {
  return request({
    url: '/Wms_ReturnStockBillMaster/GetPageData',
    method: 'post',
    data,
  })
}

// 退库单详情
export function ReturnStockBillDetail(data: any) {
  return request({
    url: '/Wms_ReturnStockBillMaster/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 删除退库单
export function ReturnStockBillDel(data: any) {
  return request({
    url: '/Wms_ReturnStockBillMaster/DelData',
    method: 'post',
    data,
  })
}

// 编辑退库单
export function UpdateReturnStockBill(data: any) {
  return request({
    url: '/Wms_ReturnStockBillMaster/UpdateData',
    method: 'post',
    data,
  })
}

// 新增退库单
export function AddReturnStockBill(data: any) {
  return request({
    url: '/Wms_ReturnStockBillMaster/AddData',
    method: 'post',
    data,
  })
}

// 流程初始化
export function startflow(data: any) {
  return request({
    url: '/WF_Instance/startflow',
    method: 'post',
    data,
  })
}

// 获取当前审核节点
export function getinstance(data: any) {
  return request({
    url: '/WF_Instance/getinstance',
    method: 'post',
    data,
  })
}

// 获取审核节点
export function auditwms(data: any) {
  return request({
    url: '/WF_Instance/auditwms',
    method: 'post',
    data,
  })
}

// 提交审核
export function excuteflow(data: any) {
  return request({
    url: '/WF_Instance/excuteflow',
    method: 'post',
    data,
  })
}

// 获取代办事项数据
export function TaskListData(data: any) {
  return request({
    url: '/WF_TaskList/DataBoardMsg',
    method: 'post',
    data,
  })
}

// 获取代办事项列表数据
export function GetTaskListData(data: any) {
  return request({
    url: '/WF_TaskList/GetPageData',
    method: 'post',
    data,
  })
}

// 获取审核记录
export function GetFlowLogList(data: any) {
  return request({
    url: '/WF_Instance/GetFlowLogList',
    method: 'post',
    data,
  })
}

// 我发起的流程列表
export function GetInstanceData(data: any) {
  return request({
    url: '/WF_Instance/GetPageData',
    method: 'post',
    data,
  })
}
